import 'package:plugin_platform_interface/plugin_platform_interface.dart';

import 'mpc_plugin_method_channel.dart';

abstract class MpcPluginPlatform extends PlatformInterface {
  /// Constructs a MpcPluginPlatform.
  MpcPluginPlatform() : super(token: _token);

  static final Object _token = Object();

  static MpcPluginPlatform _instance = MethodChannelMpcPlugin();

  /// The default instance of [MpcPluginPlatform] to use.
  ///
  /// Defaults to [MethodChannelMpcPlugin].
  static MpcPluginPlatform get instance => _instance;

  /// Platform-specific implementations should set this with their own
  /// platform-specific class that extends [MpcPluginPlatform] when
  /// they register themselves.
  static set instance(MpcPluginPlatform instance) {
    PlatformInterface.verifyToken(instance, _token);
    _instance = instance;
  }

  Future<Map<String, dynamic>?> getPlatformVersion() {
    throw UnimplementedError('getPlatformVersion() has not been implemented.');
  }

  Future<Map<String, dynamic>?> getLibVersion() {
    throw UnimplementedError('getLibVersion() has not been implemented.');
  }

  Future<Map<String, dynamic>?> forgingMPC(String salt, String path) {
    throw UnimplementedError('forgingMPC() has not been implemented.');
  }

  Future<Map<String, dynamic>?> useMnemonicForgingMPC(
      String mne, String salt, String path) {
    throw UnimplementedError(
        'useMnemonicForgingMPC() has not been implemented.');
  }

  Future<Map<String, dynamic>?> verifyMPCFragment(String frag) {
    throw UnimplementedError('verifyMPCFragment() has not been implemented.');
  }

  Future<Map<String, dynamic>?> recoverMPCFragment(String frag1, String frag2) {
    throw UnimplementedError('recoverMPCFragment() has not been implemented.');
  }

  Future<Map<String, dynamic>?> mpcFragmentGetPublicKey(String frag) {
    throw UnimplementedError(
        'mpcFragmentGetPublicKey() has not been implemented.');
  }

  Future<Map<String, dynamic>?> mpcEscape(
      String frag1, String frag2, String salt) {
    throw UnimplementedError('mpcEscape() has not been implemented.');
  }

  Future<Map<String, dynamic>?> signTx(
      String tx, String mpcA, String mpcB, String salt) {
    throw UnimplementedError('signTx() has not been implemented.');
  }


  Future<int> getVersionFromFrag(String frag) {
    throw UnimplementedError('getVersionFromFrag() has not been implemented.');
  }


  Future<Map<String, dynamic>?> getAddress(String frag,String chainId){
    throw UnimplementedError('getAddress() has not been implemented.');
  }

  Future<Map<String, dynamic>?> upgradeMPC(String frag1,String frag2,String salt){
    throw UnimplementedError('upgradeMPC() has not been implemented.');
  }

  Future<Map<String, dynamic>?> solSignTx(
      String tx, String mpcA, String mpcB, String salt) {
    throw UnimplementedError('signTx() has not been implemented.');
  }
}
